<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8">
  <style>
    body {
      width: 300px;
      padding: 15px;
      font-family: Arial, sans-serif;
    }
    .container {
      text-align: center;
    }
    h3 {
      margin-top: 0;
      color: #333;
    }
    .button-group {
      margin: 15px 0;
    }
    button {
      background-color: #4CAF50;
      color: white;
      border: none;
      padding: 8px 15px;
      margin: 5px;
      border-radius: 4px;
      cursor: pointer;
      font-size: 14px;
      transition: background-color 0.3s;
    }
    button:hover {
      background-color: #45a049;
    }
    #result {
      margin-top: 15px;
      padding: 10px;
      border: 1px solid #ddd;
      border-radius: 4px;
      max-height: 200px;
      overflow-y: auto;
      text-align: left;
      font-size: 13px;
    }
    .status {
      color: #666;
      margin: 10px 0;
      font-size: 13px;
    }
    .export-options {
      margin-top: 15px;
      padding-top: 10px;
      border-top: 1px solid #eee;
    }
  </style>
</head>
<body>
  <div class="container">
    <h3>网页内容爬取工具</h3>
    <div class="button-group">
      <button id="fullPage">爬取整个页面</button>
      <button id="selection">爬取选中内容</button>
    </div>
    <div class="status" id="status">请选择爬取方式</div>
    <div id="result"></div>
    <div class="export-options">
      <button id="exportText" disabled>导出为文本</button>
      <button id="exportJson" disabled>导出为JSON</button>
    </div>
  </div>
  <script src="popup.js"></script>
</body>
</html>
